package work.xiaohong.saolei.pojo;

import java.util.Date;

/**
 * @author : xiaohong
 * @date : 2021/4/13 21:56
 * 发送给Mq的消息实体类
 */
public class SendMsg {

    private String sender; // 消息发送者
    private Date sendTime; // 消息发送时间
    private String receiver; // 消息接收者
    private String content; // 消息内容
    private String type; // 消息类型
    private Boolean heart;// 是否是心跳消息


    @Override
    public String toString() {
        return "SendMsg{" +
                "sender='" + sender + '\'' +
                ", sendTime=" + sendTime +
                ", receiver='" + receiver + '\'' +
                ", content='" + content + '\'' +
                ", type='" + type + '\'' +
                ", heart=" + heart +
                '}';
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public Date getSendTime() {
        return sendTime;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Boolean getHeart() {
        return heart;
    }

    public void setHeart(Boolean heart) {
        this.heart = heart;
    }
}
